import request from '@/utils/request'

// 短信模板列表
export function getList(data) {
  const { pageNum, pageSize } = data
  return request({
    url: '/kd_manage/sms/template/list?pageNum=' + pageNum + '&pageSize=' + pageSize,
    method: 'post',
    data: data
  })
}
// 创建短信模板
export function postCreateSmsTemp(data) {
  return request({
    url: '/kd_manage/sms/template/createSmsTemp',
    method: 'post',
    data: data
  })
}
// 更新短信模板
export function updateSmsTemp(data) {
  return request({
    url: '/kd_manage/sms/template/updateSmsTemp',
    method: 'post',
    data: data
  })
}
// 删除短信模板
export function deleteSmsTemp(data) {
  return request({
    url: '/kd_manage/sms/template/deleteSmsTemp',
    method: 'post',
    data: data
  })
}
// 获取短信记录
export function getSemRecord(data) {
  const { pageNum, pageSize } = data
  return request({
    url: '/kd_manage/sms/record/list?pageNum=' + pageNum + '&pageSize=' + pageSize,
    method: 'post',
    data: data
  })
}
